package com.cskaoyan.app.wxcontroller;

import com.cskaoyan.app.bean.common.BaseRespVo;
import com.cskaoyan.app.bean.common.CommonData;
import com.cskaoyan.app.bean.po.MarketIssue;
import com.cskaoyan.app.wxservice.WxIssueService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("wx/issue")
public class WxIssueController {

    @Autowired
    private WxIssueService issueService;

    @GetMapping("list")
    public BaseRespVo<CommonData<MarketIssue>> list(Integer page, Integer limit) {
        CommonData<MarketIssue> data = issueService.list(page, limit);
        return BaseRespVo.ok(data);
    }
}
